package com.xihuanjun.sdk.entity;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

/**
 * 凭证行
 */
@Data
@ToString
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility= JsonAutoDetect.Visibility.NONE)
public class JournalEntry {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer Line_ID;

    private String AccountCode;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String ControlAccount;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String ContraAccount;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String LineMemo;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String Reference1;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String Reference2;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal Debit;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal Credit;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<CashFlowAssignment> CashFlowAssignments;

}
